#define _CRT_SECURE_NO_WARNINGS
#include"stackh.h"


Test1()
{
	Stack st;
	STDataType* ps = &st;
	StackInit(ps);
	 StackPush(ps,1);
	 StackPush(ps,2);
	 StackPush(ps,3); 
	 StackPush(ps,4);
	 //StackPop(ps);

	 while (!StackEmpty(ps))
	 {
		 printf("%d ", StackTop(ps));

		 StackPop(ps);
	 }
	 StackDestroy(ps);

}
int main()
{
	Test1();
	return 0;
}